package kr.hkit.PowerJava.chapter07.work;

class Rectangle {
	int w;
	int h;
	int area;
	int perimeter;

	void rArea(int w, int h) {
		area = w * h;
		System.out.println("사각형의 넓이 = " + area);
	}

	void rPerimeter(int w, int h) {
		perimeter = w * 2 + h * 2;
		System.out.println("사각형의 둘레 = " + perimeter);
	}
}
public class Programming1 {
	public static void main(String[] args) {
		Rectangle r1 = new Rectangle();

		r1.rArea(8, 3);
		r1.rPerimeter(8, 3);
	}
}
